package com.iesb.timeCalc;

public class Stopwatch {
    private long start;
    private long stop;
    
    public void start() {
        start = System.currentTimeMillis();
    }
    
    public void stop() {
        stop = System.currentTimeMillis(); 
    }
    
    public long elapsedTimeMillis() {
        return stop - start;
    }
    
    public String toString() {
        return "elapsedTimeMillis: " + Long.toString(elapsedTimeMillis()) + "ms";
    }
}
